<div class="container">
	<div class="row row-offcanvas row-offcanvas-right">
		<div class="col-xs-6 col-sm-3">
			<div class="well sidebar-nav">
				<ul class="nav">
					<li><a href="<?= WEB_PATH?>/admin/phone">Manage phone</a></li>
					<li><a href="<?= WEB_PATH?>/admin/catagory">Manage catagory</a></li>
					<li><a href="<?= WEB_PATH?>/admin/feedback">Manage feedback</a></li>
					<li><a href="<?= WEB_PATH?>/admin/banner">Manage banner</a></li>
					<li><a href="<?= WEB_PATH?>/admin/order">Manage order</a></li>
					<li><a href="<?= WEB_PATH?>/admin/customer">Manage customer</a></li>
				</ul>
			</div>
		</div>
		<!--/span-->

		<div class="col-xs-12 col-sm-9 sidebar-offcanvas" id="sidebar" >
			<table class="table">
			 	<tr class="active">
			 		<td>Mã số</td>
			 		<td>Người gửi</td>
			 		<td>Tiêu đề</td>
			 		<td>Trạng thái</td>
			 		<td>Xem</td>
			 		<td>Xóa</td>
			 	</tr>
			 	<?php foreach ($this->feedbacks as $index => $feedback) {?>
				<tr class="<?= $index % 2 == 1? 'active' : ''?>">
					<td><?=$feedback->id?></td>
					<td><?=$feedback->name?></td>
					<td><?=$feedback->title?></td>
					<td>
						<?php if ($feedback->status == 0) {?>
							Mới 
						<?php } elseif($feedback->status ==1) {?>
							Đã xem
						<?php } else {?>
							Đã trả lời
						<?php }?>
					</td>
					<td>
						<a class="btn btn-success <?=$feedback->status == 2 ? 'disabled' : ''?>" href="<?=WEB_PATH?>/admin/feedback/view/id/<?=$feedback->id?>">Xem</a> 
					</td>
					<td>
						<a class="btn btn-success " href="<?=WEB_PATH?>/admin/feedback/delete/id/<?=$feedback->id?>">Xóa</a> 
					</td>
				</tr>
				<?php }?>
			</table>
			<!--/.well -->
		</div>
		<!--/span-->

	</div>
	<!--/row-->
	
	
	<hr>

	<footer>
		<p>&copy; Company 2013</p>
	</footer>
</div>

<!--/.container-->